package cn.pet.service.manage.mapstruct;

import cn.pet.service.manage.entity.PetOrder;
import cn.pet.service.manage.entity.dto.OrderDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.factory.Mappers;

/**
 * @author zwr
 * @version 1.0
 * @description TODO
 * @date 2023/2/12 19:26
 */
@Mapper(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface OrderMapstruct {

    OrderMapstruct INSTANCE = Mappers.getMapper(OrderMapstruct.class);

    PetOrder orderDTOtoOrder(OrderDTO orderDTO,@MappingTarget PetOrder petOrder);

}
